package cn.dzz.custom;

import com.netflix.loadbalancer.IRule;
import com.netflix.loadbalancer.RandomRule;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author DaiZhiZhou
 * @file SpringCloud-ATGG-2020
 * @create 2020-08-26 22:04
 */
@Configuration
public class CustomizeRibbonLoadRule {

    @Bean
    public IRule customizeRule(){
        return new RandomRule();
    }
}
